﻿using BlindTestApplication.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlindTestApplication.ViewModel
{
    public class SongViewModel : ViewModelBase
    {
        #region fields
        // wrapped Person object
        private readonly Song song;
        #endregion

        /// <summary>
        /// Create a new instance of the SongViewModel class
        /// </summary>
        /// <param name="person">Wrapped Song object</param>
        public SongViewModel(Song _song)
        {
            if (_song == null)
                throw new NullReferenceException("song");

            this.song = _song;
        }

        #region properties
        /// <summary>
        /// Gets or sets title of the song 
        /// </summary>
        public string Title
        {
            get
            {
                return this.song.Title;
            }
            set
            {
                this.song.Title = value;
                OnPropertyChanged("Title");
            }
        }


        #endregion propertises
    }
}
